import request from '@/utils/request';
import { stringify } from 'qs';

//检测用户名是否已存在
export async function checkAccount(params) {
  return request(`/blade-user/user/checkAccount?${stringify(params)}`);
}

//提交注册信息
export async function register(params) {
  return request('/zjf-oms/user/add', {
    method: 'POST',
    data: params,
  });
}

//获取图片验证码
export async function getCaptchaImage(params) {
  return request(`/blade-auth/oauth/captcha?${stringify(params)}`);
}

//获取安全验证图形验证码
export async function getSaftCaptchaOp(params) {
  return request(`/blade-user/phone/getCodeAndOauth?${stringify(params)}`);
}